package com.ruoyi.web.domain;

import java.math.BigDecimal;

import lombok.Data;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 product
 * 
 * @author ruoyi
 * @date 2025-05-31
 */
@Data
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long productId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 封面图 */
    @Excel(name = "封面图")
    private String coverImage;

    /** 详情描述 */
    @Excel(name = "详情描述")
    private String description;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    @Excel(name = "店铺ID")
    private String shopId;

    /** 状态（1上架 0下架） */
    @Excel(name = "状态", readConverterExp = "1=上架,0=下架")
    private Long status;

    private DateTimeLiteralExpression.DateTime creatTime;

    private String userId;

    public void setId(Long productId)
    {
        this.productId = productId;
    }

    public Long getId() 
    {
        return productId;
    }

    public void setName(String name) 
    {
        this.productName = name;
    }

    public String getName() 
    {
        return productName;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setCoverImage(String coverImage) 
    {
        this.coverImage = coverImage;
    }

    public String getCoverImage() 
    {
        return coverImage;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("price", getPrice())
            .append("coverImage", getCoverImage())
            .append("description", getDescription())
            .append("categoryId", getCategoryId())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
